/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __LED_H__
#define __LED_H__

/* Includes ------------------------------------------------------------------*/
#include "stm8s.h"

/* Exported types ------------------------------------------------------------*/
typedef enum _eOutput
{
    NO_RELAY,
    RELAY1,
    RELAY2,
    RELAY3,
    RELAY4,
    RELAY5,
    RELAY6
} eOutput;

/* Exported constants --------------------------------------------------------*/
#define RELAY1_PORT    (GPIOA)
#define RELAY1_PINS    (GPIO_PIN_3)
#define RELAY2_PORT    (GPIOD)
#define RELAY2_PINS    (GPIO_PIN_6)
#define RELAY3_PORT    (GPIOD)
#define RELAY3_PINS    (GPIO_PIN_5)
#define RELAY4_PORT    (GPIOC)
#define RELAY4_PINS    (GPIO_PIN_3)
#define RELAY5_PORT    (GPIOC)
#define RELAY5_PINS    (GPIO_PIN_4)
#define RELAY6_PORT    (GPIOC)
#define RELAY6_PINS    (GPIO_PIN_5)

/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */



void Led_Init(void);
void Led_SetAllOutput( bool iOn );
void Led_SetOutput( eOutput iOutput, bool iOn );
void Led_InvOutput( eOutput iOutput );
void Led_RunOne(void);

#endif /* __LED_H__ */

